# -*-coding:utf-8-*-
"""
@project: python-project
@Time: 2024-07-13 9:47
@Author: Loneliness_Burial
@File: 修改数据.py
@Motto: 深情不改必坠死海
@software: pycharm
@version: python 3.7
"""

import sqlite3

conn = sqlite3.connect('D:\Desktop\LCConfigDataBase')
curson = conn.cursor()
curson.execute('UPDATE  login SET password="user12345" WHERE id = "2"')
curson.execute('SELECT * FROM login WHERE id = "2"')
result = curson.fetchall()
print(result)
curson.close()
conn.commit()
conn.close()
